﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Text.RegularExpressions;

namespace ChinaLeg.Web
{
    public partial class WebTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string src = "<p><embed height=\"500\" menu=\"true\" loop=\"true\" play=\"true\" type=\"application/x-shockwave-flash\" src=\"http://player.youku.com/player.php/sid/XNDUxOTE5NDY4/v.swf\" width=\"600\"></embed></p>";


            Regex reg = new Regex(".+src=\"([^\"]+)\".+", RegexOptions.IgnoreCase);
            //return reg.Replace(obj.ToTrim(), "$1");

            string res = reg.Match(src).Groups[1].Value;

            Response.Write(res);
        }
    }
}